158. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:52 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

158.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesowl_list.phtml2023-07-04 08:13:10 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesowl_list.phtml2023-07-04 08:13:10 +0000

158.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1850
Changed00
Inserted00
Removed00

158.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

158.4 Active regular expressions

No regular expressions were active.

158.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 $_productCollection = $block->getLoadedProductCollection(); 18 $_productCollection = $block->getLoadedProductCollection();
19 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 19 $_helper = $this->helper('Magento\Catalog\Helper\Output');
20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
22 $_category_config = $_portohelper->getConfig('porto_settings/category'); 22 $_category_config = $_portohelper->getConfig('porto_settings/category');
23 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 23 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
24 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 24 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
25 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 25 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
26 $extra_class = $this->getData("extra_class"); 26 $extra_class = $this->getData("extra_class");
27 // Daily deal Helper 27 // Daily deal Helper
28 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 28 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
29  29 
30 $aspect_ratio = $this->getData("aspect_ratio"); 30 $aspect_ratio = $this->getData("aspect_ratio");
31 if($aspect_ratio == null) { 31 if($aspect_ratio == null) {
32     $aspect_ratio = $_category_config['aspect_ratio']; 32     $aspect_ratio = $_category_config['aspect_ratio'];
33 } 33 }
34 $image_width = $this->getData("image_width"); 34 $image_width = $this->getData("image_width");
35 if(!$image_width) { 35 if(!$image_width) {
36     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 36     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
37 } 37 }
38 $image_height = $this->getData("image_height"); 38 $image_height = $this->getData("image_height");
39 if($aspect_ratio) 39 if($aspect_ratio)
40     $image_height = $image_width; 40     $image_height = $image_width;
41 if(!$image_height) { 41 if(!$image_height) {
42     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 42     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
43 } 43 }
44 $product_type = $this->getData("product_type"); 44 $product_type = $this->getData("product_type");
45 if($product_type == null) { 45 if($product_type == null) {
46     $product_type = $_category_grid_config['product_type']; 46     $product_type = $_category_grid_config['product_type'];
47 } 47 }
48 if($product_type == null) { 48 if($product_type == null) {
49     $product_type = 1; 49     $product_type = 1;
50 } 50 }
51 ?> 51 ?>
52 <?php if (!$_productCollection->count()): ?> 52 <?php if (!$_productCollection->count()): ?>
53     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 53     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
54 <?php else: ?> 54 <?php else: ?>
55     <?php 55     <?php
56     $viewMode = 'grid'; 56     $viewMode = 'grid';
57     $image = 'category_page_grid'; 57     $image = 'category_page_grid';
58     $hover_image = 'category_page_grid-hover'; 58     $hover_image = 'category_page_grid-hover';
59     $showDescription = false; 59     $showDescription = false;
60     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 60     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
61     ?> 61     ?>
62     <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 62     <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
63         <?php $iterator = 1; ?> 63         <?php $iterator = 1; ?>
64         <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>"> 64         <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>">
65             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 65             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
66             <?php foreach ($_productCollection as $_product): ?> 66             <?php foreach ($_productCollection as $_product): ?>
67                 <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> 67                 <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?>
68                 <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> 68                 <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid">
69                     <?php // Product Image ?> 69                     <?php // Product Image ?>
70                     <div class="product photo product-item-photo"> 70                     <div class="product photo product-item-photo">
71                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 71                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
72                         <?php 72                         <?php
73                             if($aspect_ratio) 73                             if($aspect_ratio)
74                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 74                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
75                             else 75                             else
76                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 76                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
77                             $productImageUrl = $productImage->getUrl(); 77                             $productImageUrl = $productImage->getUrl();
78                         ?> 78                         ?>
79                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 79                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
80                         <?php if($_category_config['alternative_image']): ?> 80                         <?php if($_category_config['alternative_image']): ?>
81                         <?php 81                         <?php
82                             if($aspect_ratio) 82                             if($aspect_ratio)
83                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 83                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
84                             else 84                             else
85                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 85                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
86                             $productHoverImageUrl = $productHoverImage->getUrl(); 86                             $productHoverImageUrl = $productHoverImage->getUrl();
87                         ?> 87                         ?>
88                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 88                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
89                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 89                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
90                             <?php endif; ?> 90                             <?php endif; ?>
91                         <?php endif; ?> 91                         <?php endif; ?>
92                         </a> 92                         </a>
93                         <?php 93                         <?php
94                             $product_label = ""; 94                             $product_label = "";
95                             if($_product_label_config['sale_label']) { 95                             if($_product_label_config['sale_label']) {
96                                 if ($percentage = $_portohelper->getPercentage($_product)) { 96                                 if ($percentage = $_portohelper->getPercentage($_product)) {
97                                     if($_product_label_config['sale_label_percent']) { 97                                     if($_product_label_config['sale_label_percent']) {
98                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 98                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
99                                     } else { 99                                     } else {
100                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 100                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
101                                     } 101                                     }
102                                 } 102                                 }
103                             } 103                             }
104                             if($_product_label_config['new_label']) { 104                             if($_product_label_config['new_label']) {
105                                 $now = date("Y-m-d"); 105                                 $now = date("Y-m-d");
106                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 106                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
107                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); 107                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
108  108 
109                                 if ($newsTo != '' || $newsFrom != ''){ 109                                 if ($newsTo != '' || $newsFrom != ''){
110                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 110                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
111                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 111                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
112                                     } 112                                     }
113                                 } 113                                 }
114                             } 114                             }
115                             if($product_label) 115                             if($product_label)
116                                 echo '<div class="product-labels">'.$product_label.'</div>'; 116                                 echo '<div class="product-labels">'.$product_label.'</div>';
117                         ?> 117                         ?>
118                         <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?> 118                         <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
119                         <div class="product-item-inner"> 119                         <div class="product-item-inner">
120                             <div class="product actions product-item-actions"> 120                             <div class="product actions product-item-actions">
121                                 <div class="actions-primary"> 121                                 <div class="actions-primary">
122                                     <?php if ($_product->isSaleable()): ?> 122                                     <?php if ($_product->isSaleable()): ?>
123                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 123                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
124                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 124                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
125                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 125                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
126                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 126                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
127  127 
128                                             <?php echo $block->getBlockHtml('formkey')?> 128                                             <?php echo $block->getBlockHtml('formkey')?>
129                                             <button type="submit" 129                                             <button type="submit"
130                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 130                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
131                                                     class="action tocart primary"> 131                                                     class="action tocart primary">
132                                                 <span><?php echo __('Add to Cart') ?></span> 132                                                 <span><?php echo __('Add to Cart') ?></span>
133                                             </button> 133                                             </button>
134                                         </form> 134                                         </form>
135                                     <?php else: ?> 135                                     <?php else: ?>
136                                         <?php if ($_product->getIsSalable()): ?> 136                                         <?php if ($_product->getIsSalable()): ?>
137                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 137                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
138                                         <?php else: ?> 138                                         <?php else: ?>
139                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 139                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
140                                         <?php endif; ?> 140                                         <?php endif; ?>
141                                     <?php endif; ?> 141                                     <?php endif; ?>
142                                 </div> 142                                 </div>
143                                 <?php if ($block->getMode() == 'grid'): ?> 143                                 <?php if ($block->getMode() == 'grid'): ?>
144                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 144                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
145                                     <a href="#" 145                                     <a href="#"
146                                        class="action towishlist actions-secondary" 146                                        class="action towishlist actions-secondary"
147                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 147                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
148                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 148                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
149                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 149                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
150                                        data-action="add-to-wishlist" 150                                        data-action="add-to-wishlist"
151                                        role="button"> 151                                        role="button">
152                                         <span><?php echo __('Add to Wish List') ?></span> 152                                         <span><?php echo __('Add to Wish List') ?></span>
153                                     </a> 153                                     </a>
154                                 <?php endif; ?> 154                                 <?php endif; ?>
155                                 <?php endif; ?> 155                                 <?php endif; ?>
156                                 <?php if($_category_config['addtocompare']): ?> 156                                 <?php if($_category_config['addtocompare']): ?>
157                                 <?php 157                                 <?php
158                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 158                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
159                                 ?> 159                                 ?>
160                                 <a href="#" 160                                 <a href="#"
161                                    class="action tocompare actions-secondary" 161                                    class="action tocompare actions-secondary"
162                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 162                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
163                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 163                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
164                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 164                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
165                                    role="button"> 165                                    role="button">
166                                     <span><?php echo __('Add to Compare') ?></span> 166                                     <span><?php echo __('Add to Compare') ?></span>
167                                 </a> 167                                 </a>
168                                 <?php endif; ?> 168                                 <?php endif; ?>
169                             </div> 169                             </div>
170                         </div> 170                         </div>
171                         <?php endif; ?> 171                         <?php endif; ?>
172                         <!-- Dailydeal Product data --> 172                         <!-- Dailydeal Product data -->
173                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 173                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
174                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 174                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
175                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 175                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
176                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 176                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
177                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 177                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
178                             <div class="sw-dailydeal"> 178                             <div class="sw-dailydeal">
179                                 <p id="expired_<?php echo $unique_id; ?>"></p> 179                                 <p id="expired_<?php echo $unique_id; ?>"></p>
180                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 180                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
181                                     <span class="dailydeal-label"> 181                                     <span class="dailydeal-label">
182                                         <?php echo __('Ends In:'); ?> 182                                         <?php echo __('Ends In:'); ?>
183                                     </span> 183                                     </span>
184                                     <span class="number-wrapper"> 184                                     <span class="number-wrapper">
185                                         <div class="line"></div> 185                                         <div class="line"></div>
186                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 186                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
187                                         <div class="caption"><?php echo __('Day(s), '); ?></div> 187                                         <div class="caption"><?php echo __('Day(s), '); ?></div>
188                                     </span> 188                                     </span>
189  189 
190                                     <span class="number-wrapper"> 190                                     <span class="number-wrapper">
191                                         <div class="line"></div> 191                                         <div class="line"></div>
192                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 192                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
193                                         <div class="caption">:</div> 193                                         <div class="caption">:</div>
194                                     </span> 194                                     </span>
195  195 
196                                     <span class="number-wrapper"> 196                                     <span class="number-wrapper">
197                                         <div class="line"></div> 197                                         <div class="line"></div>
198                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 198                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
199                                         <div class="caption">:</div> 199                                         <div class="caption">:</div>
200                                     </span> 200                                     </span>
201  201 
202                                     <span class="number-wrapper"> 202                                     <span class="number-wrapper">
203                                         <div class="line"></div> 203                                         <div class="line"></div>
204                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 204                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
205                                         <div class="caption"></div> 205                                         <div class="caption"></div>
206                                     </span> 206                                     </span>
207                                 </div> 207                                 </div>
208                             </div> 208                             </div>
209                         </div> 209                         </div>
210                         <?php endif; ?> 210                         <?php endif; ?>
211                         <!-- Dailydeal Product End --> 211                         <!-- Dailydeal Product End -->
212                     </div> 212                     </div>
213                     <div class="product details product-item-details"> 213                     <div class="product details product-item-details">
214                         <?php 214                         <?php
215                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 215                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
216                         ?> 216                         ?>
217                         <strong class="product name product-item-name"> 217                         <strong class="product name product-item-name">
218                             <a class="product-item-link" 218                             <a class="product-item-link"
219                                href="<?php echo $_product->getProductUrl() ?>"> 219                                href="<?php echo $_product->getProductUrl() ?>">
220                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 220                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
221                             </a> 221                             </a>
222                         </strong> 222                         </strong>
223                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 223                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
224                         <?php if($_category_config['rating_star']): ?> 224                         <?php if($_category_config['rating_star']): ?>
225                         <?php 225                         <?php
226                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 226                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
227                         ?> 227                         ?>
228                         <?php if($review_html): ?> 228                         <?php if($review_html): ?>
229                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 229                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
230                         <?php else: ?> 230                         <?php else: ?>
231                         <div class="product-reviews-summary short"> 231                         <div class="product-reviews-summary short">
232                             <div class="rating-summary"> 232                             <div class="rating-summary">
233                                 <span class="label"><span>Rating:</span></span> 233                                 <span class="label"><span>Rating:</span></span>
234                                 <div class="rating-result" title="0%"> 234                                 <div class="rating-result" title="0%">
235                                     <span style="width:0"><span>0%</span></span> 235                                     <span style="width:0"><span>0%</span></span>
236                                 </div> 236                                 </div>
237                             </div> 237                             </div>
238                         </div> 238                         </div>
239                         <?php endif; ?> 239                         <?php endif; ?>
240                         <?php endif; ?> 240                         <?php endif; ?>
241  241 
242                         <?php if ($showDescription):?> 242                         <?php if ($showDescription):?>
243                             <div class="product description product-item-description"> 243                             <div class="product description product-item-description">
244                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 244                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
245                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 245                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
246                                    class="action more"><?php echo __('Learn More') ?></a> 246                                    class="action more"><?php echo __('Learn More') ?></a>
247                             </div> 247                             </div>
248                         <?php endif; ?> 248                         <?php endif; ?>
249                         <?php if($_category_config['product_price']): ?> 249                         <?php if($_category_config['product_price']): ?>
250                         <?php echo $block->getProductPrice($_product) ?> 250                         <?php echo $block->getProductPrice($_product) ?>
251                         <?php endif; ?> 251                         <?php endif; ?>
252                         <?php echo $block->getProductDetailsHtml($_product); ?> 252                         <?php echo $block->getProductDetailsHtml($_product); ?>
253  253 
254                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?> 254                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?>
255                         <div class="product-item-inner"> 255                         <div class="product-item-inner">
256                             <div class="product actions product-item-actions"> 256                             <div class="product actions product-item-actions">
257                                 <?php if ($block->getMode() == 'grid'): ?> 257                                 <?php if ($block->getMode() == 'grid'): ?>
258                                 <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> 258                                 <?php if($_category_config['addtowishlist'] && $product_type != 4): ?>
259                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 259                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
260                                     <a href="#" 260                                     <a href="#"
261                                        class="action towishlist actions-secondary" 261                                        class="action towishlist actions-secondary"
262                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 262                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
263                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 263                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
264                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 264                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
265                                        data-action="add-to-wishlist" 265                                        data-action="add-to-wishlist"
266                                        role="button"> 266                                        role="button">
267                                         <span><?php echo __('Add to Wish List') ?></span> 267                                         <span><?php echo __('Add to Wish List') ?></span>
268                                     </a> 268                                     </a>
269                                 <?php endif; ?> 269                                 <?php endif; ?>
270                                 <?php endif; ?> 270                                 <?php endif; ?>
271                                 <?php endif; ?> 271                                 <?php endif; ?>
272                                 <div class="actions-primary"> 272                                 <div class="actions-primary">
273                                     <?php if ($_product->isSaleable()): ?> 273                                     <?php if ($_product->isSaleable()): ?>
274                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 274                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
275                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 275                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
276                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 276                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
277                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 277                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
278                                             <?php if($product_type == 10):?> 278                                             <?php if($product_type == 10):?>
279                                                 <div class="qty-box"> 279                                                 <div class="qty-box">
280                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 280                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
281                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> 281                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
282                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 282                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
283                                                 </div> 283                                                 </div>
284                                             <?php endif;?> 284                                             <?php endif;?>
285                                             <?php echo $block->getBlockHtml('formkey')?> 285                                             <?php echo $block->getBlockHtml('formkey')?>
286                                             <button type="submit" 286                                             <button type="submit"
287                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 287                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
288                                                     class="action tocart primary"> 288                                                     class="action tocart primary">
289                                                 <span><?php echo __('Add to Cart') ?></span> 289                                                 <span><?php echo __('Add to Cart') ?></span>
290                                             </button> 290                                             </button>
291                                         </form> 291                                         </form>
292                                     <?php else: ?> 292                                     <?php else: ?>
293                                         <?php if ($_product->getIsSalable()): ?> 293                                         <?php if ($_product->getIsSalable()): ?>
294                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 294                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
295                                         <?php else: ?> 295                                         <?php else: ?>
296                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 296                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
297                                         <?php endif; ?> 297                                         <?php endif; ?>
298                                     <?php endif; ?> 298                                     <?php endif; ?>
299                                 </div> 299                                 </div>
300                                 <?php if ($block->getMode() == 'grid'): ?> 300                                 <?php if ($block->getMode() == 'grid'): ?>
301                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 301                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
302                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 302                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
303                                     <a href="#" 303                                     <a href="#"
304                                        class="action towishlist actions-secondary" 304                                        class="action towishlist actions-secondary"
305                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 305                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
306                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 306                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
307                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 307                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
308                                        data-action="add-to-wishlist" 308                                        data-action="add-to-wishlist"
309                                        role="button"> 309                                        role="button">
310                                         <span><?php echo __('Add to Wish List') ?></span> 310                                         <span><?php echo __('Add to Wish List') ?></span>
311                                     </a> 311                                     </a>
312                                 <?php endif; ?> 312                                 <?php endif; ?>
313                                 <?php endif; ?> 313                                 <?php endif; ?>
314                                 <?php endif; ?> 314                                 <?php endif; ?>
315                                 <?php if($_category_config['addtocompare']): ?> 315                                 <?php if($_category_config['addtocompare']): ?>
316                                 <?php 316                                 <?php
317                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 317                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
318                                 ?> 318                                 ?>
319                                 <a href="#" 319                                 <a href="#"
320                                    class="action tocompare actions-secondary" 320                                    class="action tocompare actions-secondary"
321                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 321                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
322                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 322                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
323                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 323                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
324                                    role="button"> 324                                    role="button">
325                                     <span><?php echo __('Add to Compare') ?></span> 325                                     <span><?php echo __('Add to Compare') ?></span>
326                                 </a> 326                                 </a>
327                                 <?php endif; ?> 327                                 <?php endif; ?>
328                             </div> 328                             </div>
329                         </div> 329                         </div>
330                         <?php endif; ?> 330                         <?php endif; ?>
331                     </div> 331                     </div>
332                 </div> 332                 </div>
333                 <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> 333                 <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?>
334             <?php endforeach; ?> 334             <?php endforeach; ?>
335         </div> 335         </div>
336     </div> 336     </div>
337     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 337     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
338     <script type="text/javascript"> 338     <script type="text/javascript">
339     require([ 339     require([
340         'jquery' 340         'jquery'
341     ], function ($) { 341     ], function ($) {
342     // Timer for LEFT time for Dailydeal product 342     // Timer for LEFT time for Dailydeal product
343         var _second = 1000; 343         var _second = 1000;
344         var _minute = _second * 60; 344         var _minute = _second * 60;
345         var _hour = _minute * 60; 345         var _hour = _minute * 60;
346         var _day = _hour * 24; 346         var _day = _hour * 24;
347         var timer; 347         var timer;
348  348 
349         //Set date as magentodatetime 349         //Set date as magentodatetime
350         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 350         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
351         var l_date = new Date(); 351         var l_date = new Date();
352         var offset_date = l_date - date; 352         var offset_date = l_date - date;
353  353 
354         function showRemaining() 354         function showRemaining()
355         { 355         {
356             $(".sw-dailydeal-wrapper").each(function(){ 356             $(".sw-dailydeal-wrapper").each(function(){
357                 var unique_id = $(this).attr("data-unique-id"); 357                 var unique_id = $(this).attr("data-unique-id");
358                 // get Value of dailydeal product 358                 // get Value of dailydeal product
359                 var cid='countdown_'+unique_id; 359                 var cid='countdown_'+unique_id;
360                 var daysid='countdown_days_'+unique_id; 360                 var daysid='countdown_days_'+unique_id;
361                 var hoursid='countdown_hours_'+unique_id; 361                 var hoursid='countdown_hours_'+unique_id;
362                 var minutesid='countdown_minutes_'+unique_id; 362                 var minutesid='countdown_minutes_'+unique_id;
363                 var secondsid='countdown_seconds_'+unique_id; 363                 var secondsid='countdown_seconds_'+unique_id;
364  364 
365                 var startdateid='fromdate_'+unique_id; 365                 var startdateid='fromdate_'+unique_id;
366                 var id='todate_'+unique_id; 366                 var id='todate_'+unique_id;
367  367 
368                 var enddate = new Date($('#'+id).val()); 368                 var enddate = new Date($('#'+id).val());
369                 var dealstartdate=new Date($('#'+startdateid).val()); 369                 var dealstartdate=new Date($('#'+startdateid).val());
370  370 
371                 var currentdate=new Date(); 371                 var currentdate=new Date();
372  372 
373                 //Get Difference between Two dates 373                 //Get Difference between Two dates
374                 var distance = enddate - (currentdate - offset_date); 374                 var distance = enddate - (currentdate - offset_date);
375  375 
376                 $('.sw-dailydeal-wrapper').show(); 376                 $('.sw-dailydeal-wrapper').show();
377  377 
378                 if (distance < 0) { 378                 if (distance < 0) {
379                    // clearInterval(timer); 379                    // clearInterval(timer);
380                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 380                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
381  381 
382                 } else if(dealstartdate > currentdate) { 382                 } else if(dealstartdate > currentdate) {
383                    $('.countdowncontainer_'+unique_id).hide(); 383                    $('.countdowncontainer_'+unique_id).hide();
384                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 384                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
385                    $('#expired_'+unique_id).html(msg); 385                    $('#expired_'+unique_id).html(msg);
386                 } else { 386                 } else {
387                     var days = Math.floor(distance / _day); 387                     var days = Math.floor(distance / _day);
388                     var hours = Math.floor((distance % _day) / _hour); 388                     var hours = Math.floor((distance % _day) / _hour);
389                     var minutes = Math.floor((distance % _hour) / _minute); 389                     var minutes = Math.floor((distance % _hour) / _minute);
390                     var seconds = Math.floor((distance % _minute) / _second); 390                     var seconds = Math.floor((distance % _minute) / _second);
391  391 
392                     if(hours < 10) 392                     if(hours < 10)
393                         hours = "0" + hours; 393                         hours = "0" + hours;
394                     if(minutes < 10) 394                     if(minutes < 10)
395                         minutes = "0" + minutes; 395                         minutes = "0" + minutes;
396                     if(seconds < 10) 396                     if(seconds < 10)
397                         seconds = "0" + seconds; 397                         seconds = "0" + seconds;
398                     $('.countdowncontainer_'+unique_id).show(); 398                     $('.countdowncontainer_'+unique_id).show();
399                     $('#'+daysid).html(days); 399                     $('#'+daysid).html(days);
400                     $('#'+hoursid).html(hours); 400                     $('#'+hoursid).html(hours);
401                     $('#'+minutesid).html(minutes); 401                     $('#'+minutesid).html(minutes);
402                     $('#'+secondsid).html(seconds); 402                     $('#'+secondsid).html(seconds);
403                 } 403                 }
404             }); 404             });
405         } 405         }
406  406 
407         // Set Interval 407         // Set Interval
408         timer = setInterval(function() 408         timer = setInterval(function()
409         { 409         {
410             showRemaining(); 410             showRemaining();
411         }, 1000); 411         }, 1000);
412     }); 412     });
413     </script> 413     </script>
414     <?php $_dailydealhelper->setLoadedTimer(); ?> 414     <?php $_dailydealhelper->setLoadedTimer(); ?>
415     <?php endif; ?> 415     <?php endif; ?>
416     <?php if (!$block->isRedirectToCartEnabled()) : ?> 416     <?php if (!$block->isRedirectToCartEnabled()) : ?>
417         <script type="text/x-magento-init"> 417         <script type="text/x-magento-init">
418         { 418         {
419             "[data-role=tocart-form], .form.map.checkout": { 419             "[data-role=tocart-form], .form.map.checkout": {
420                 "catalogAddToCart": {} 420                 "catalogAddToCart": {}
421             } 421             }
422         } 422         }
423         </script> 423         </script>
424     <?php endif; ?> 424     <?php endif; ?>
425 <?php endif; ?> 425 <?php endif; ?>